import { join } from "./path";

import { getHomeDir } from "./getHomeDir";
import { fileIo as fs} from "@kit.CoreFileKit";

export const ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";

export const getCredentialsFilepath = () =>{
  const folder = join(getHomeDir(), ".aws");
  if (!fs.accessSync(folder)) {
    fs.mkdirSync(folder, true)
  }
  return join(folder,"credentials")
}


